package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Etcb4Mapper;
import com.ruoyi.system.domain.Etcb4;
import com.ruoyi.system.service.IEtcb4Service;

/**
 * Service业务层处理
 *
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class Etcb4ServiceImpl implements IEtcb4Service
{
    @Autowired
    private Etcb4Mapper etcb4Mapper;

    /**
     * 查询
     *
     * @param id 主键
     * @return
     */
    @Override
    public Etcb4 selectEtcb4ById(Long id)
    {
        return etcb4Mapper.selectEtcb4ById(id);
    }

    /**
     * 查询列表
     *
     * @param etcb4
     * @return
     */
    @Override
    public List<Etcb4> selectEtcb4List(Etcb4 etcb4)
    {
        return etcb4Mapper.selectEtcb4List(etcb4);
    }

    /**
     * 新增
     *
     * @param etcb4
     * @return 结果
     */
    @Override
    public int insertEtcb4(Etcb4 etcb4)
    {
        return etcb4Mapper.insertEtcb4(etcb4);
    }

    /**
     * 修改
     *
     * @param etcb4
     * @return 结果
     */
    @Override
    public int updateEtcb4(Etcb4 etcb4)
    {
        return etcb4Mapper.updateEtcb4(etcb4);
    }

    /**
     * 批量删除
     *
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteEtcb4ByIds(Long[] ids)
    {
        return etcb4Mapper.deleteEtcb4ByIds(ids);
    }

    /**
     * 删除信息
     *
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteEtcb4ById(Long id)
    {
        return etcb4Mapper.deleteEtcb4ById(id);
    }
}
